<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title></title>
</head>
<body>
<div style="width: 95%;">
    <table class="table table-hover" border="0" style="margin-left:40px;width:100%" >
        <thead style="background: #43a0ff;color:#FFFFFF;">
        <tr   <%--height="35px"--%>>
            <td width="8%">属性</td>
            <td width="8%">状态</td>
            <td width="9%">联系人类别</td>
            <td width="9%">联系人关系</td>
            <td width="11%">联系人姓名</td>
            <td width="24%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系人手机号与电话</td>
            <%-- <td width="25%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系人其他信息</td>--%>
            <td width="24%">备注</td>
            <td width="7%">操作</td>
        </tr>
        </thead>
        <tbody>
       <c:if test="${userContactsInfoList1 ne  null}">
        <c:forEach    var="contactsInfo" varStatus="var" items="${userContactsInfoList1}">
            <tr height="120px">
                <td>
                    <c:if test="${contactsInfo.contSource==0}">原有</c:if>
                    <c:if test="${contactsInfo.contSource==1}">新增 </c:if>
                </td>
                <td>
                    <c:if test="${contactsInfo.contStatus==1}">无效</c:if>
                    <c:if test="${contactsInfo.contStatus==0}">有效</c:if>
                </td>
                <td>
                    <c:if test="${contactsInfo.contType==1}">直系亲属</c:if>
                    <c:if test="${contactsInfo.contType==2}">紧急联系人</c:if>
                    <c:if test="${contactsInfo.contType==3}">朋友</c:if>
                    <c:if test="${contactsInfo.contType==4}">其他联系人</c:if>
                </td>
                <td>
                    <c:forEach  var="callship" varStatus="var" items="${linkManShipMap}">
                        <c:if test="${callship.key eq contactsInfo.contShip}">
                            ${callship.value}
                        </c:if>
                    </c:forEach>
                </td>
                <td>${contactsInfo.contUserName}</td>
                <td align="left">
                    <c:if test="${!empty contactsInfo.contMobile1}">
                    <div style="margin-left: 20px;"><span><span>手机号1:${contactsInfo.contMobile1}</span>
                         <c:if test="${flag eq 'nei'}">
                        &nbsp;
              <img src="static/images/icon-a.png"  mType="m1" anjianstauts="${callLoanInfo.status}" uContactsInfoId='${contactsInfo.id}' callLoanNid='${callLoanInfo.callLoanNid}' call>&nbsp;
              <a href="javascript:void(-1);" style="color: blue"onclick="toMessage('${contactsInfo.id}','${contactsInfo.contMobile1}','${contactsInfo.contMobile1Show}','${callLoanInfo.callUser}')"><img src="static/images/icon-b.png"></a></span>

                        <span> <a href="javascript:void(-1);" style="color: blue"onclick="addCuishouRecord('${contactsInfo.id}','m1')"><img src="static/images/icon5.png" height="17px" width="17px"></a></span>
                        </c:if>
                        <c:if test="${flag eq 'wai'}">
                            </span>
                        </c:if>
                        </c:if>
                        <c:if test="${!empty contactsInfo.contMobile2}">
                            <br><span><span>手机号2:${contactsInfo.contMobile2}</span>
                             <c:if test="${flag eq 'nei'}">
                                 &nbsp;
                  <img src="static/images/icon-a.png"  mType="m2" anjianstauts="${callLoanInfo.status}" uContactsInfoId='${contactsInfo.id}' callLoanNid='${callLoanInfo.callLoanNid}' call>&nbsp;
                  <a href="javascript:void(-1);" style="color: blue"onclick="toMessage('${contactsInfo.id}','${contactsInfo.contMobile2}','${contactsInfo.contMobile2Show}','${callLoanInfo.callUser}')"><img src="static/images/icon-b.png"></a></span>

                                 <span> <a href="javascript:void(-1);" style="color: blue"onclick="addCuishouRecord('${contactsInfo.id}','m2')"><img src="static/images/icon5.png" height="17px" width="17px"></a></span>
                             </c:if>
                            <c:if test="${flag eq 'wai'}">
                                </span>
                            </c:if>
                        </c:if>
                        <c:if test="${!empty contactsInfo.contMobile3}">
                            <br><span><span>手机号3:${contactsInfo.contMobile3}</span>
                               <c:if test="${flag eq 'nei'}">
                            &nbsp;
                  <img src="static/images/icon-a.png"  mType="m3" anjianstauts="${callLoanInfo.status}" uContactsInfoId='${contactsInfo.id}' callLoanNid='${callLoanInfo.callLoanNid}' call>&nbsp;
                  <a href="javascript:void(-1);" style="color: blue"onclick="toMessage('${contactsInfo.id}','${contactsInfo.contMobile3}','${contactsInfo.contMobile3Show}','${callLoanInfo.callUser}')"><img src="static/images/icon-b.png"></a></span>
                                   <span> <a href="javascript:void(-1);" style="color: blue"onclick="addCuishouRecord('${contactsInfo.id}','m3')"><img src="static/images/icon5.png" height="17px" width="17px"></a></span>
                               </c:if>
                            <c:if test="${flag eq 'wai'}">
                                </span>
                            </c:if>
                        </c:if>
                        <c:if test="${!empty contactsInfo.contTellCom}">
                            <br><span><span>公司电话:${contactsInfo.contTellCom}</span>
                              <c:if test="${flag eq 'nei'}">
                            &nbsp;
                  <img src="static/images/icon-a.png"  mType="mc" anjianstauts="${callLoanInfo.status}" uContactsInfoId='${contactsInfo.id}' callLoanNid='${callLoanInfo.callLoanNid}' call></span>
                  &nbsp;
                  <span> <a href="javascript:void(-1);" style="color: blue"onclick="addCuishouRecord('${contactsInfo.id}','tel')"><img src="static/images/icon5.png" height="17px" width="17px"></a></span>
                        </c:if>
                            <c:if test="${flag eq 'wai'}">
                                </span>
                            </c:if>
                        </c:if>
                    </div>
                </td>
                <td> ${contactsInfo.remark}</td>
                <td>
                    <c:if test="${contactsInfo.contSource==0}">
                        <a href="javascript:void(-1);" style="color: #43a0ff" onclick="updateStatus('${contactsInfo.userId}','${contactsInfo.id}','${contactsInfo.contStatus}')">修改状态 </a><br>

                    </c:if>
                    <c:if test="${contactsInfo.contSource==1}">
                        <a href="javascript:void(-1);" style="color: #43a0ff" onclick="updateLinkMan('${contactsInfo.userId}','${contactsInfo.id}')">修改 </a><br>
                        <a href="javascript:void(-1);" style="color: #43a0ff" onclick="deleteLinkMan('${contactsInfo.id}')">删除</a>
                    </c:if>
                </td>
            </tr>
        </c:forEach>
       </c:if>
        </tbody>
    </table>

</div>
<script type="text/javascript" src="static/call/callCommon.js${getTime}"></script>
</body>
</html>
